\expression Templates" in Java
نویسنده
چکیده
Template techniques in C++ allow a modest degree of gen-erative programming: creating specialized code for specialized problems. This use of templates has been controversial; indeed, one of the oft-cited reasons for migrating to Java is that it provides a simpler language, free of complexities such as templates. The essence of generative programming in C++ is not templates { the language feature { but rather the underlying algorithms in the compiler (template instantiation) which unintentionally resemble an optimization called partial evaluation 14, 20]. By devising a partial evaluator for Java, we reproduce some of the gen-erative programming aspects of C++ templates, without extending the Java language. The prototype compiler, called Lunar, is capable of doing \expression templates" in Java to optimize numerical array objects.
منابع مشابه
Just When You Thought Your Little Language Was Safe: "Expression Templates" in Java
Template techniques in C allow a modest degree of gen erative programming creating specialized code for specialized problems This use of templates has been controversial indeed one of the oft cited reasons for migrating to Java is that it provides a simpler language free of complexities such as templates The essence of generative program ming in C is not templates the language feature but rathe...
متن کاملEffects of insulin-like growth factor-induced Wharton jelly mesenchymal stem cells toward chondrogenesis in an osteoarthritis model
Objective(s): This study aimed to determine the collagen type II (COL2) and SOX9 expression in interleukin growth factor (IGF-1)-induced Wharton’s Jelly mesenchymal stem cells (WJMSCs) and the level of chondrogenic markers in co-culture IGF1-WJMSCs and IL1β-CHON002 as osteoarthritis (OA) cells model. Materials and Methods: WJMSCs were induced with IGF1 (75, 150, and 300 ng/ml) to enhance their ...
متن کاملfilib++ , Expression Templates and the Coming Interval Standard
In this paper we investigate how a C++ class library can be improved by the concept of expression templates. Our first result is a saving of rounding mode switches which considerably increases the performance. Our second result deals with handling the discontinuity flag that will probably be decided to be raised whenever a function is called outside its domain (loose evaluation). We discuss sev...
متن کاملDefining Model Transformations for Property Templates
We defined the notion of property templates after we observed that many system failures can be clustered according to their symptoms, and the design constraints these failures violate [PW09]. In this technical report we document the semantics of property templates, and how we implemented these semantics in AspectJ code templates that support assertion generation for Java programs.
متن کاملMonolithic Compiler Experiments using C++ Expression Templates*
In this work, we study and prototype compiler optimizations for array indexing operations. The optimizations can be proven theoretically correct by the Psi Calculus, developed by Mullin [5], and result in very efficient implementations in which the need to materialize intermediate array values in complex expressions is eliminated. Our prototype implementation is based on C++ expression template...
متن کامل